package cn.wolfcode.mp.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Getter
@Setter
public class QueryObject {

    private int currentPage = 1;
    private int pageSize = 3;

    private String keyword;

    public String getKeyword(){
        return StringUtils.hasLength(keyword)? keyword : null;
    }
}
